package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 新闻管理对象 tb_news
 * 
 * @author ruoyi
 * @date 2025-07-11
 */
public class TbNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /**  */
    @Excel(name = "")
    private Long typeId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 新闻的照片，最多9张，多张以","隔开 */
    @Excel(name = "新闻的照片，最多9张，多张以\",\"隔开")
    private String images;

    /** 新闻的文字描述 */
    @Excel(name = "新闻的文字描述")
    private String content;

    /** 点赞数量 */
    @Excel(name = "点赞数量")
    private Integer liked;

    /** 评论数量 */
    @Excel(name = "评论数量")
    private Integer comments;

    /** 新闻评论信息 */
    private List<TbNewsComments> tbNewsCommentsList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setLiked(Integer liked) 
    {
        this.liked = liked;
    }

    public Integer getLiked() 
    {
        return liked;
    }

    public void setComments(Integer comments) 
    {
        this.comments = comments;
    }

    public Integer getComments() 
    {
        return comments;
    }

    public List<TbNewsComments> getTbNewsCommentsList()
    {
        return tbNewsCommentsList;
    }

    public void setTbNewsCommentsList(List<TbNewsComments> tbNewsCommentsList)
    {
        this.tbNewsCommentsList = tbNewsCommentsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("typeId", getTypeId())
            .append("title", getTitle())
            .append("images", getImages())
            .append("content", getContent())
            .append("liked", getLiked())
            .append("comments", getComments())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("tbNewsCommentsList", getTbNewsCommentsList())
            .toString();
    }
}
